/**
 * Created by dllo on 18/4/8.
 */
public class Swimmer {
    private String gender;
    private int length;
    private String stroke;

    public Swimmer() {
    }

    public Swimmer(String gender, int length, String stroke) {
        this.gender = gender;
        this.length = length;
        this.stroke = stroke;
    }

    public void swim() {
        System.out.println(gender + length + "米" + stroke);
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public String getStroke() {
        return stroke;
    }

    public void setStroke(String stroke) {
        this.stroke = stroke;
    }
}
